package elephant.rpc.server.service;

/**
 * 
 * @author skydu
 *
 */
public interface RPCServiceInterceptor {

	/**
	 * 
	 * @param interfaceClass
	 * @param stub
	 * @param args
	 */
	void beforeInvoke(Class<?> interfaceClass,MethodStub stub,Object[] args);
	
	/**
	 * 
	 * @param interfaceClass
	 * @param stub
	 * @param args
	 * @param exception
	 */
	void afterInvoke(Class<?> interfaceClass,MethodStub stub,Object[] args,Throwable exception);
}
